﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gx.Common.Core
{
    public class PagedList<T> where T : class
    {
        public PagedList()
        {

        }

        public PagedList(int total, IList<T> list)
        {
            this._list = list;
            this.Total = total;
        }
        private IList<T> _list;
        public IList<T> List
        {
            get
            {
                if (_list == null)
                    _list = new List<T>();
                return _list;
            }
            set
            {
                _list = value;
            }
        }
        public int Total { get; set; }
    }
}
